<div>
    <div class="meta-section">
        <div class="meta-section-header">
            <h4 class="meta-section-header-title">需求详情</h4>
        </div>
        <div class="meta-section-container">
            <ul class="meta-double-version-nav nav-tabs">
                <li class="uib-tab" ng-class="{'active': !isInit}"><a ng-click="changeInit()">线上版本</a></li>
                <li class="uib-tab" ng-class="{'active': isInit}"><a ng-click="changeInit()">初始版本</a></li>
                <li class="clear-float"></li>
            </ul>
            <div class="meta-secondary-section">
                <div class="meta-secondary-section-header">
                    <i class="fa fa-th-list"></i><span>需求概要信息</span>
                </div>
                <div class="meta-secondary-section-content">
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">需求编号: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-text">
                                {{editCtrl.data.sn==null?'暂无':editCtrl.data.sn}}
                            </div>
                        </div>
                        <div class="clear-float"></div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">需求名称: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input ng-readonly="isInit" class="form-control" type="text" ng-model="editCtrl.data.title" name="title" />
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">需求领域: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-checkbox">
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="area" ng-model="editCtrl.data.area_choice.area01" ng-checked="editCtrl.data.area_choice.area01"> 生农医药
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="area" ng-model="editCtrl.data.area_choice.area02" ng-checked="editCtrl.data.area_choice.area02"> 化学化工
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="area" ng-model="editCtrl.data.area_choice.area03" ng-checked="editCtrl.data.area_choice.area03"> 能源环保
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="area" ng-model="editCtrl.data.area_choice.area04" ng-checked="editCtrl.data.area_choice.area04"> 机械电子
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="area" ng-model="editCtrl.data.area_choice.area05" ng-checked="editCtrl.data.area_choice.area05"> 材料科学
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="area" ng-model="editCtrl.data.area_choice.area06" ng-checked="editCtrl.data.area_choice.area06"> 其他
                                </label>
                            </div>
                        </div>
                    </div>
                    <!-- <div class="meta-input-section">
                        <span class="meta-input-section-title">领域: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <ui-select multiple ng-model="editCtrl.data.areas" theme="bootstrap">
                                    <ui-select-match class="ui-select-match" placeholder="选择领域">{{$item.areaValue}}
                                    </ui-select-match>
                                    <ui-select-choices class="ui-select-choices" group-by="'firstArea'" repeat="element in areasOptions | filter:$select.search">
                                        {{element.secondArea}}
                                    </ui-select-choices>
                                </ui-select>
                            </div>
                        </div>
                    </div> -->
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">合作方式: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-checkbox">
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="cooperationForm" ng-model="editCtrl.data.cooperationForm_choice.cooperationForm01" ng-checked="editCtrl.data.cooperationForm_choice.cooperationForm01"> 技术入股
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="cooperationForm" ng-model="editCtrl.data.cooperationForm_choice.cooperationForm02" ng-checked="editCtrl.data.cooperationForm_choice.cooperationForm02"> 技术转让
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="cooperationForm" ng-model="editCtrl.data.cooperationForm_choice.cooperationForm03" ng-checked="editCtrl.data.cooperationForm_choice.cooperationForm03"> 技术许可
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="cooperationForm" ng-model="editCtrl.data.cooperationForm_choice.cooperationForm04" ng-checked="editCtrl.data.cooperationForm_choice.cooperationForm04"> 委托开发
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="cooperationForm" ng-model="editCtrl.data.cooperationForm_choice.cooperationForm05" ng-checked="editCtrl.data.cooperationForm_choice.cooperationForm05"> 其他
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">交付形式: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-radio">
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="productionForm" ng-model="editCtrl.data.researchType" value="产品" required> 产品
                                </label>
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="researchType" ng-model="editCtrl.data.researchType" value="工艺" required> 工艺
                                </label>
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="researchType" ng-model="editCtrl.data.researchType" value="整体方案" required> 整体方案
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">研发周期: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-range meta-month-range">
                                <input ng-readonly="isInit" class="form-control" type="number" ng-model="editCtrl.data.researchPeriod[0]" name="researchPeriodMin" required min="0" />
                            </div>
                            <div class="meta-range-dash"></div>
                            <div class="meta-range meta-month-range">
                                <input ng-readonly="isInit" class="form-control" type="number" ng-model="editCtrl.data.researchPeriod[1]" name="researchPeriodMax" required min="0" />
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">合作经费: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-range meta-money-range">
                                <input ng-readonly="isInit" class="form-control" type="number" ng-model="editCtrl.data.researchFunding[0]" name="researchFundingMin" required min="0" />
                            </div>
                            <div class="meta-range-dash"></div>
                            <div class="meta-range meta-money-range">
                                <input ng-readonly="isInit" class="form-control" type="number" ng-model="editCtrl.data.researchFunding[1]" name="researchFundingMax" required min="0" />
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">诚意金: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-range meta-fund-range">
                                <input ng-readonly="isInit" class="form-control" type="text" ng-model="editCtrl.data.earnestMoney" name="earnestMoney" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="meta-secondary-section">
                <div class="meta-secondary-section-header">
                    <i class="fa fa-th-list"></i><span>需求详细信息</span>
                </div>
                <div class="meta-secondary-section-content">
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">需求详述: </span>
                        <div class="meta-block-input-section-control">
                            <div class="meta-rich">
                                <textarea ng-readonly="isInit" class="form-control" ng-model="editCtrl.data.details" rows="10" name="details" froala="CONFIG.froalaOptions"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">预期目标: </span>
                        <div class="meta-block-input-section-control">
                            <div class="meta-rich">
                                <textarea ng-readonly="isInit" class="form-control" ng-model="editCtrl.data.indicators" rows="10" name="details" froala="CONFIG.froalaOptions"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">否定方案: </span>
                        <div class="meta-block-input-section-control">
                            <div class="meta-rich">
                                <textarea ng-readonly="isInit" class="form-control" ng-model="editCtrl.data.theUninteresting" rows="10" name="details" froala="CONFIG.froalaOptions"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">附件上传: </span>
                        <div class="meta-block-input-section-control">
                            <div class="meta-file">
                                <meta-multiple-qnuploader class="meta-multiple-qnuploader ng-isolate-scope" uploader-config="CONFIG.qnuploader" uploader-data="editCtrl.data.attachments">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="meta-secondary-section">
                <div class="meta-secondary-section-header">
                    <i class="fa fa-th-list"></i><span>企业相关联系人</span>
                </div>
                <div class="meta-secondary-section-content">
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">提交人: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input ng-readonly="isInit" class="form-control" type="text" ng-model="editCtrl.data.publisher.name" name="name" disabled="disabled" />
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">联系电话: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input ng-readonly="isInit" class="form-control" type="tel" ng-model="editCtrl.data.publisher.mobile" name="" disabled="disabled" />
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">责任关系: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-radio">
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="relationWithOwner" ng-model="editCtrl.data.relationWithOwner" value="本人" required> 本人
                                </label>
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="relationWithOwner" ng-model="editCtrl.data.relationWithOwner" value="亲属" required> 亲属
                                </label>
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="relationWithOwner" ng-model="editCtrl.data.relationWithOwner" value="朋友" required> 朋友
                                </label>
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="relationWithOwner" ng-model="editCtrl.data.relationWithOwner" value="雇佣" required> 雇佣
                                </label>
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="relationWithOwner" ng-model="editCtrl.data.relationWithOwner" value="授权" required> 授权
                                </label>
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="relationWithOwner" ng-model="editCtrl.data.relationWithOwner" value="其他" required> 其他
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">需求企业: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input ng-readonly="isInit" class="form-control" type="text" ng-model="editCtrl.data.enterpriseInfo.name" name="enterpriseName" />
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">企业规模: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-radio">
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="scale" ng-model="editCtrl.data.enterpriseInfo.scale" value="50人以下" required> 50人以下
                                </label>
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="scale" ng-model="editCtrl.data.enterpriseInfo.scale" value="50-100人" required> 50-100人
                                </label>
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="scale" ng-model="editCtrl.data.enterpriseInfo.scale" value="100-500人" required> 100-500人
                                </label>
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="scale" ng-model="editCtrl.data.enterpriseInfo.scale" value="500人以上" required> 500人以上
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">所在地: </span>
                        <div class="meta-block-input-section-control">
                            <div class="meta-input">
                                <select ng-disabled="isInit" class="form-control" ng-model="editCtrl.data.enterpriseInfo.province" ng-options="option for option in metaConstants.provinces" style="margin-bottom: 10px"></select>
                                <select ng-disabled="isInit" class="form-control" ng-model="editCtrl.data.enterpriseInfo.city" ng-options="option for option in metaConstants.cities[editCtrl.data.enterpriseInfo.province]" style="margin-bottom: 10px"></select>
                                <input ng-readonly="isInit" class="form-control" type="text" ng-model="editCtrl.data.enterpriseInfo.district" name="name" />
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">是否跟进: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-radio">
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="follow" ng-model="editCtrl.data.willingToFollow" value="true" required> 是
                                </label>
                                <label class="radio-inline">
                                    <input ng-disabled="isInit" type="radio" name="follow" ng-model="editCtrl.data.willingToFollow" value="false" required> 否
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">联系人: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input ng-readonly="isInit" class="form-control" type="text" ng-model="editCtrl.data.contactInfo.name" name="title" />
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">联系方式: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input ng-readonly="isInit" class="form-control" type="text" ng-model="editCtrl.data.contactInfo.phone" name="title" />
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">企业联系人: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input ng-readonly="isInit" class="form-control" type="text" ng-model="editCtrl.data.enterpriseInfo.contactName" name="title" ng-disabled="editCtrl.data.willingToFollow=='true'"/>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">联系方式: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input ng-readonly="isInit" class="form-control" type="text" ng-model="editCtrl.data.enterpriseInfo.contactPhone" name="title" ng-disabled="editCtrl.data.willingToFollow=='true'" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="meta-secondary-section meta-last">
                <div class="meta-secondary-section-header">
                    <i class="fa fa-th-list"></i><span>负责人信息</span>
                </div>
                <div class="meta-secondary-section-content">
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">负责人类型: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-text">
                                {{editCtrl.data.leaderId==null?'还未委派':(editCtrl.data.leaderId==editCtrl.data.publisherId?'申请人':'合伙人')}}
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">姓名: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-text">
                                {{editCtrl.data.leader.name==null?'还未委派':editCtrl.data.leader.name}}
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">所属机构: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input ng-readonly="isInit" class="form-control" type="text" ng-model="editCtrl.data.leader.partnerInfo.organization" name="institution" ng-disabled="editCtrl.data.leaderId==null" />
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">部门: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input ng-readonly="isInit" class="form-control" type="text" ng-model="editCtrl.data.leader.partnerInfo.department" name="department" ng-disabled="editCtrl.data.leaderId==null" />
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">职务: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input ng-readonly="isInit" class="form-control" type="text" ng-model="editCtrl.data.leader.partnerInfo.post" name="post" ng-disabled="editCtrl.data.leaderId==null" />
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">渠道领域: </span>
                        <div class="meta-input-section-control">
                            <div class="meta-checkbox">
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit||(editCtrl.data.leaderId==null)" type="checkbox" name="area" ng-model="editCtrl.data.way_choice.area01" ng-checked="editCtrl.data.way_choice.area01"> 生农医药
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit||(editCtrl.data.leaderId==null)" type="checkbox" name="area" ng-model="editCtrl.data.way_choice.area02" ng-checked="editCtrl.data.way_choice.area02"> 化学化工
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit||(editCtrl.data.leaderId==null)" type="checkbox" name="area" ng-model="editCtrl.data.way_choice.area03" ng-checked="editCtrl.data.way_choice.area03"> 能源环保
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit||(editCtrl.data.leaderId==null)" type="checkbox" name="area" ng-model="editCtrl.data.way_choice.area04" ng-checked="editCtrl.data.way_choice.area04"> 机械电子
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit||(editCtrl.data.leaderId==null)" type="checkbox" name="area" ng-model="editCtrl.data.way_choice.area05" ng-checked="editCtrl.data.way_choice.area05"> 材料科学
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit||(editCtrl.data.leaderId==null)" type="checkbox" name="area" ng-model="editCtrl.data.way_choice.area06" ng-checked="editCtrl.data.way_choice.area06"> 其他
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">项目经验: </span>
                        <div class="meta-block-input-section-control">
                            <div class="meta-rich">
                                <textarea ng-readonly="isInit" ng-disabled="editCtrl.data.leaderId==null" class="form-control" ng-model="editCtrl.data.leader.partnerInfo.projectExperience" rows="10" name="details" froala="CONFIG.froalaOptions"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">上传简历: </span>
                        <div class="meta-block-input-section-control">
                            <div class="meta-rich">
                                <span style="line-height:33px;">{{editCtrl.data.leader.partnerInfo.resume.name==null?'暂无':editCtrl.data.leader.partnerInfo.resume.name}}</span>
                                <meta-single-qnuploader uploader-config="CONFIG.qnuploader" uploader-data="editCtrl.data.leader.partnerInfo.resume"></meta-single-qnuploader>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="meta-submit">
                <div class="meta-large-double-buttons">
                    <button ng-disabled="isInit" class="btn btn-success" ng-click="save()">保&nbsp;&nbsp;存</button>
                    <button ng-disabled="isInit" class="btn btn-warning" ng-click="reset()">重&nbsp;&nbsp;置</button>
                </div>
            </div>
        </div>
    </div>
</div>
